<!--#include virtual="/dzps/p1.asp"-->
<!DOCTYPE html>
<html>
<head>
  <title><%=val("")%></title>
<%
	easp.include "h.asp"
	vas "title","打印机故障报修"
%>
<link rel="stylesheet" href="/dzps/src/layuiadmin/style/login.css" media="all">
</head>
<body>
　　<!--下面2行为了隐藏360自动填充用户名和密码表单-->
　　<input type="text" id="aaa" style="visibility: hidden;" />   
　　<input type="password" id="aba" style="visibility: hidden;" />

  <div class="layadmin-user-login layadmin-user-display-show" id="LAY-user-login" style="display: none;">
    <div class="layadmin-user-login-main">
      <div class="layadmin-user-login-box layadmin-user-login-header">
        <h2><%=val("title")%></h2>
        <p><%=val("prn")%></p>
      </div>
	  
	  
      <div class="layadmin-user-login-box layadmin-user-login-body layui-form">
		<div class="layui-form-item">
            <textarea name="desc" placeholder="请输入故障描述" class="layui-textarea"></textarea>
        </div> 

		<div class="layui-form-item">
          <label class="layadmin-user-login-icon layui-icon layui-icon-table" for="icon-table"></label>
          <input type="text" id="trueName" name="trueName" lay-verify="required" placeholder="姓名" class="layui-input">
        </div>        
		<div class="layui-form-item">
          <label class="layadmin-user-login-icon layui-icon layui-icon-cellphone" for="LAY-user-login-cellphone"></label>
          <input type="text" id="userName" name="username" id="LAY-user-login-username" lay-verify="required" placeholder="联系电话" class="layui-input">
        </div>

		

        <div class="layui-form-item">
          <button class="layui-btn layui-btn-fluid" lay-submit lay-filter="LAY-user-reg-submit" id="LAY-user-reg-submit">提  交</button>
        </div>
      </div>
    </div>
    <div class="layui-trans layadmin-user-login-footer">
      <p>© 2018 <a href="http://www.layui.com/" target="_blank">xx.com</a></p>
      <!--
	  <p>
        <span><a href="http://www" target="_blank">获取授权</a></span>
        <span><a href="http://www" target="_blank">在线演示</a></span>
        <span><a href="http://www" target="_blank">前往官网</a></span>
      </p>
	  -->
    </div>
  </div>
  <script src="/dzps/src/layuiadmin/layui/layui.js"></script>  
  <script>
  layui.config({
    base: '/dzps/src/layuiadmin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'user'], function(){
    var $ = layui.$
    ,setter = layui.setter
    ,admin = layui.admin
    ,form = layui.form
    ,router = layui.router();

    form.render();
	function aa(){
		layer.alert('欢迎您！', {
			skin: 'layui-layer-molv' 
		  ,closeBtn: 0,time: 0
		  ,title:'湖南恒天'
		});
	}
form.on('checkbox(agreement)', function(data){
  if(data.elem.checked){
	aa();
  }
}); 	
form.on('submit(LAY-user-reg-submit)', function(obj){
  var field = obj.field;
  if(field.password !== field.repass){
	return layer.msg('两次密码输入不一致');
  }
  if(!field.agreement){
	return layer.msg('你必须同意用户协议才能注册');
  }
  admin.req({
	url: layui.setter.base + 'lib/reg.asp?action=userReg' 
	,data: field
	,done: function(res){
		if(res.msg=='成功'){
			layer.msg(res.msg, {offset: '15px',icon: 1,time: 1000}, function(){
			location.href = 'login.asp'; 
		  });	
		}else{
			layer.msg(res.msg, {offset: '15px',icon: 1,time: 1000}, function(){
		  });			
		}
	}
  });
  return false;
});
});
  </script>
</body>
</html>